package com.algo.config;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

import java.util.function.Predicate;

public class MyImportSelector implements ImportSelector {

    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        return new String[] {"com.algo.color.Blue", "com.algo.color.Green"};
    }

    @Override
    public Predicate<String> getExclusionFilter() {
        return str -> {
            return false;
        };
    }
}
